//
//  UserPlayerCollectionViewCell.m
//  YUXiu
//
//  Created by wang on 16/6/28.
//  Copyright © 2016年 Wang. All rights reserved.
//

#import "UserPlayerCollectionViewCell.h"

@implementation UserPlayerCollectionViewCell
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    //    frame = Rect(0, 0, (kScreenWidth-20)/2, 160);

    if (self) {
        _bgView = [[UIImageView alloc]initWithFrame:krect(0, 0, self.golf_width, 140)];
        [_bgView setImage:kCreatImage(@"001.jpg")];
        _bgView.layer.cornerRadius = 8;
        _bgView.clipsToBounds = YES;
        [self.contentView addSubview:_bgView];
        
        _img = [[UIImageView alloc]initWithFrame:krect(2, _bgView.golf_bottom, 20, 20)];
        [_img setImage:[UIImage imageNamed:@"channel_metro_item_play_mv_btn"]];
        [self.contentView addSubview:_img];
        
        _ncLabel = [[UILabel alloc]initWithFrame:krect(22, _bgView.golf_bottom, self.width-25, 20)];
        [self.contentView addSubview:_ncLabel];

    }
    
    return self;
}

-(void)layoutSubviews{
    
    _ncLabel.text = @"历史直播1课";
    
}
@end
